// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';

// 分页获取数据
export const getCollegePersonInfoList = params => {
    return postRequest('/collegePersonInfo/getByPage', params);
};
// 添加
export const addCollegePersonInfo = params => {
    return postRequest('/collegePersonInfo/insertOrUpdate', params);
};
// 编辑
export const editCollegePersonInfo = params => {
    return postRequest('/collegePersonInfo/insertOrUpdate', params);
};
// 删除
export const deleteCollegePersonInfo = params => {
    return postRequest('/collegePersonInfo/delByIds', params);
};

// 启用
export const enableCollegePersonInfo = (id, params) => {
    return postRequest(`/collegePersonInfo/enable/${id}`, params);
};

// 禁用
export const disableCollegePersonInfo = (id, params) => {
    return postRequest(`/collegePersonInfo/disable/${id}`, params);
};

// 导入学校二级账号
export const importCollegeData = params => {
    return postBodyRequest('/collegePersonInfo/importCollegePersonInfo', params);
};
